<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:70:"/www/wwwroot/xunda-college/application/index/view/course/practice.html";i:1701245397;s:66:"/www/wwwroot/xunda-college/application/index/view/course/next.html";i:1699171117;}*/ ?>
<link rel="stylesheet" type="text/css" href="__PUBLIC__css/practice.css">
<link rel="stylesheet" href="__PUBLIC__editor/css/editormd.preview.css" />
<script src="__PUBLIC__editor/lib/marked.min.js"></script>
<script src="__PUBLIC__editor/lib/prettify.min.js"></script>
<script src="__PUBLIC__editor/lib/raphael.min.js"></script>
<script src="__PUBLIC__editor/lib/underscore.min.js"></script>
<script src="__PUBLIC__editor/lib/sequence-diagram.min.js"></script>
<script src="__PUBLIC__editor/lib/flowchart.min.js"></script>
<script src="__PUBLIC__editor/lib/jquery.flowchart.min.js"></script>
<script src="__PUBLIC__editor/editormd.js"></script>
<div class="content-wrapper">
	<h1><?php echo $data['course_name']; ?></h1>
	<div class="practice" data-id="<?php echo $data['ques']['2']; ?>-<?php echo $data['ques']['0']['id']; ?>" data-course="<?php echo $data['course_id']; ?>" data-sort="<?php echo !empty($param['sort'])?$param['sort']: 1; ?>">
		<div class="item active">
			<div class="txt">
				<div class="Brushtopic_subject" id="testEditorMdview1">
					<textarea class="textarea" id="demo1" style="display:none;"><?php echo htmlspecialchars($data['ques']['0']['stem']); ?></textarea>   
				</div>
			</div>
			<h4>选出正确答案：</h4>
			<div class="select">
				<ul>
					<?php foreach($data['ques']['0']['metas'] as $key=>$meta): ?>
					<li>
						<div class="icon"><em><?php echo $meta['zimu']; ?></em></div><span><?php echo $meta['content']; ?></span>
					</li>
					<?php endforeach; ?>
				</ul>
			</div>
		</div>
		<div class="answer" style="display: none;">
			<h4>提示</h4>
			<div>
				<textarea class="textarea" id="demo2" style="display:none;"><?php echo htmlspecialchars($data['ques']['0']['analysis']); ?></textarea>   
				<div class="Brushtopic_subject" id="testEditorMdview2"></div>
			</div>
		</div>
		<div class="prompt">
			不会做了？<a href="/learnings/<?php echo $data['ques']['0']['course_id']; ?>?seek=<?php echo $data['ques']['0']['seek']; ?>" target="_blank">复习相关视频/文档</a>
		</div>
	</div>
	<div class="content-footer">
		<div class="next">
			<div class="restart">重新开始</div>
			<div class="count">共<?php echo count($data['ques'][1]); ?>道题</div>
			<div class="round">
				<?php foreach($data['ques'][1] as $key=>$id): ?>
				<span class="<?php if(($key+1) == $param['sort']): ?> active<?php endif; if($data['ques'][3][$id] == 1): ?> yes <?php endif; ?>"></span>
				<?php endforeach; ?>
			</div>
			<div class="detection disable"><a href="javascript:;">检测</a></div>
			<div class="nextQuestion hide"><a href="javascript:;">下一个问题</a></div>
			<div class="summarize hide"><a href="javascript:;">显示总结</a></div>
		</div>
	</div>
</div>
<!-- 显示总结 -->
<div class="content-wrapper summarize-wrapper" style="display:none;">
	<h1><?php echo $data['course_name']; ?></h1>
	<div class="summarize-box">
		<h2>继续前进，不断增长</h2>
		<p>做一个单元测试或课程挑战来升级</p>
		<h3></h3>
		<div class="summarize-img">
			<img src="__PUBLIC__images/space-friend_v3.png">
			<img src="__PUBLIC__images/green-friend_v3.png">
			<img src="__PUBLIC__images/light-blue-friend_v3.png">
		</div>
	</div>
	<?php if($nextData): ?><div class="content-footer">
	<?php if($param['fetch'] == 'practice'): ?><div class="try"><a href="javascript:;" class="restart"><i class="iconfont icon-shuaxin"></i>再试一次</a></div><?php endif; ?>
	<div class="next">
		<a href="/learnings/<?php echo $nextData['course_id']; ?>">下一步：<?php echo returnCourseZh($nextData['type']); ?></a>
	</div>
</div><?php endif; ?>
</div>
<script type="text/javascript" src="__PUBLIC__js/practice.js"></script>